package cn.gzjp.modules.gas.service;

import java.util.List;

import org.springframework.stereotype.Service;
import org.springframework.transaction.annotation.Transactional;

import cn.gzjp.common.persistence.Page;
import cn.gzjp.common.service.CrudService;
import cn.gzjp.modules.gas.entity.GasInvoice;
import cn.gzjp.modules.gas.dao.GasInvoiceDao;

/**
 * 发票Service
 * @author zengcp
 * @version 2018-03-09
 */
@Service
@Transactional(readOnly = true)
public class GasInvoiceService extends CrudService<GasInvoiceDao, GasInvoice> {

	public GasInvoice get(String id) {
		return super.get(id);
	}
	
	public List<GasInvoice> findList(GasInvoice gasInvoice) {
		return super.findList(gasInvoice);
	}
	
	public Page<GasInvoice> findPage(Page<GasInvoice> page, GasInvoice gasInvoice) {
		return super.findPage(page, gasInvoice);
	}
	
	@Transactional(readOnly = false)
	public void save(GasInvoice gasInvoice) {
		super.save(gasInvoice);
	}
	
	@Transactional(readOnly = false)
	public void delete(GasInvoice gasInvoice) {
		super.deleteByLogic(gasInvoice);
	}
	
}